<template>
	<view class="content">
		四季酒店
		<view class="uni-content">
			<view class="uni-content-dip">
				<view>开业时间 2013年</view>
				<view>房间数量 999间</view>
			</view>
			<view>
				<view>酒店等级</view>
				<!-- <view class="hr"></view> -->
				<hr style="height:1rpx;border-width:0;color:gray;background-color:gray;margin-top: 10rpx;">
				<view class="uni_ipphon">
					<view>酒店电话</view>
					<view>+86 783-293000-029</view>
					<uni-icons type="phone-filled" size="30"></uni-icons>
				</view>
			</view>
		</view>

		<view class="uni_border">
			<view class="tabs">
				<view @click="currentTab = 0" :class="{active: currentTab === 0}" class="tabs-back">
					<view>酒店亮点</view>
				</view>
				<view @click="currentTab = 1" :class="{active: currentTab === 1}" class="tabs-back">
					<view>设施服务</view>
				</view>
				<view @click="currentTab = 2" :class="{active: currentTab === 2}" class="tabs-back">
					<view>酒店政策</view>
				</view>

			</view>

			<view v-if="currentTab === 0">
				<view class="content-warp">
					<view class="content-warp-card" v-for="(item,index) in Flaglist" :key="index">
						<view class="content-warp-card-text">{{item.jiud}}</view>
						<view class="content-warp-card-title">
							<view class="content-warp-card-title_size">{{item.size}}</view>
							<view class="content-warp-card-title_size">{{item.title}}</view>
							<view class="content-warp-card-title_size">{{item.food}}</view>
						</view>
						<view class="uni_cord">
							<view class="uni_cord_disp">
								<view>{{item.one}}</view>
								<view><uni-icons type="right" size="20" color="#A57252"></uni-icons></view>
							</view>
							<view class="uni_cord_titel">
								{{item.title2}}
							</view>
							<hr style="height:1rpx;border-width:0;color:gray;background-color:gray;margin-top: 10rpx;">
							<view class="uni_cord_titel">
								{{item.comment}}
							</view>
						</view>
					</view>
					<view>123</view>
					<view>123</view>
					<liu-show-hide></liu-show-hide>
					
					<view>123</view>
				</view>
			</view>
			<view v-if="currentTab === 1">
				<view>456</view>
			</view>
			<view v-if="currentTab === 2">
				<view>789</view>
			</view>
		</view>

	</view>
</template>

<script>
	import navBar from '../../component/nav-bar.vue';
	export default {
		components: {
			navBar
		},
		data() {
			return {
				currentTab: 0, // 当前选中的选项卡索引  
				count: 4,
				value: 2,
				Flaglist: [{
						is_like: false,
						jiud: '四季酒店',
						like: '../../static/images/like.png',
						size: '室外景观游泳池',
						title: '城景',
						one: '深圳美景酒店榜第7名',
						title2: "地处福田中央商务区,会展中心近在咫尺，距离时尚购物中心几步之邀，一城繁华",
						comment: '住客说： 夜景很美，场外视野很好'
					},
					{
						is_like: false,
						jiud: '四季酒店',
						like: '../../static/images/like.png',
						size: '室外景观游泳池',
						title: '城景',
						one: '深圳美景酒店榜第4名',
						title2: "地处福田中央商务区,会展中心近在咫尺，距离时尚购物中心几步之邀，一城繁华",
						food: '中餐',
						comment: '住客说： 自助餐不错'
					},
				]
			}
		}
	}
</script>

<style scoped lang="scss">
	.hr {
		border-bottom: 1rpx solid red;
	}

	.uni-content {
		border: 1rpx solid black;
		margin: 30rpx;
		border-radius: 30rpx;
		padding: 30rpx;

		&-dip {
			display: flex;
			justify-content: space-between;
			margin: 30rpx;
		}
	}

	.uni_ipphon {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.tabs {
		margin-top: 50rpx;
		display: flex;
		justify-content: space-around;
		padding: 10px;
	}

	.tabs button {
		padding: 10px 20px;
		border: none;
		background-color: #f0f0f0;
	}

	.tabs-back {

		width: 140rpx;
		height: 70rpx;
		// border-radius: 20rpx;	
		line-height: 70rpx;
		display: flex;
		align-items: center;
		justify-content: space-around;
	}

	.active {
		color: #4B0C46;
		// transition-duration: 0.8s;
		border-bottom: 5rpx solid #347CAF;
	}

	.uni_border {
		border: 4rpx solid #BBBBBB;
		border-radius: 20rpx;
		padding: 30rpx;
	}

	.content-warp {
		// margin: 30rpx;
		// height: 900rpx;
		// display: flex;
		// flex-wrap: wrap;
		/* 允许换行 */
		// justify-content: space-between;

		&-card {
			// width: 280rpx;
			// height: 350rpx;
			border-radius: 30rpx;
			padding: 30rpx;
			margin-top: 30rpx;

			&-text {
				margin-top: 10rpx;
				font-size: 40rpx;
			}

			&-title {
				margin-top: 20rpx;
				width: 300rpx;
				// border: 1rpx solid red;
				display: flex;
				justify-content: space-between;

				&_size {
					color: #ffffff;
					font-size: 20rpx;
				}
			}
		}
	}

	.content-warp-card:nth-of-type(1) {
		background-image: url('../../static/logo.png');
		background-position: center center;
		/* 背景图不平铺 */
		background-repeat: no-repeat;
		/* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定 */
		// background-attachment: fixed;
		/* 让背景图基于容器大小伸缩 */
		background-size: 100% 100%;
		/* 设置背景颜色，背景图加载过程中会显示背景色 */
		background-color: #464646;
	}

	.content-warp-card:nth-of-type(2) {
		background-image: url('../../static/logo.png');
		background-position: center center;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		background-color: #464646;
	}

	.content-warp-card:nth-of-type(3) {
		background-image: url('../../static/logo.png');
		background-position: center center;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		background-color: #464646;
	}

	.content-warp-card:nth-of-type(4) {
		background-image: url('../../static/logo.png');
		background-position: center center;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		background-color: #464646;
	}

	.uni_cord {
		margin-top: 20rpx;
		background-color: #FFFFFF;
		color: black;
		padding: 20rpx;
		border-radius: 20rpx;

		&_disp {
			display: flex;
			background-color: #FDF3EA;
			color: #A57252;
			align-items: center;
		}

		&_titel {
			color: black;
			font-size: 28rpx;
			margin-top: 20rpx;
		}
	}
</style>